package com.gable.exhibition.dao;

import com.gable.exhibition.model.ContractDevice;
import com.gable.exhibition.view.ContractDeviceView;
import com.gable.exhibition.view.ContractView;
import com.gable.exhibition.view.ParameterView;

import java.util.List;

public interface ContractDeviceDao {
    int deleteByPrimaryKey(Long contractDeviceId);

    int insertSelective(ContractDevice record);

    ContractDevice selectByPrimaryKey(Long contractDeviceId);

    int updateByPrimaryKeySelective(ContractDevice record);

    ContractView deviceByContract(ParameterView parameterView);


    /**
     * 合同设备预计发货明细
     * @param estimateId
     * @Create user jacky
     * @Create date 2018/2/22
     * @return
     */
    List<ContractDeviceView> estimateQuantity(Long estimateId);

    /**
     * 获取合同设备的预计发货，实际发货明细
     * @param contractDeviceId
     * @Create user jacky
     * @Create date 2018/2/22
     * @return
     */
    List<ContractDeviceView> deviceEstimateActual(Long contractDeviceId);
}